package com.bwie.doctor.mapper;

import com.bwie.doctor.domain.po.MedDoctorReviews;
import com.bwie.doctor.domain.po.Symptom;
import com.bwie.doctor.domain.vo.MedDoctorReviewsVo;
import com.bwie.doctor.domain.vo.MedDoctorVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MedDoctorReviewsMapper {
    /**
     * 患者对医生评价列表
     * @return
     */
    List<MedDoctorReviewsVo> queryReviewsList();

    /**
     *根据id 查询评论详情
     */
    MedDoctorReviews queryReviewsDetails(@Param("reviewId") Long reviewId);

    /**
     * 回复评论
     */
    Integer replyReviews(MedDoctorReviews medDoctorReviews);

    /**
     * 医生列表
     * @return
     */
    List<MedDoctorVo> queryDoctorList(@Param("symptomName") String symptomName);

    /**
     * 症状列表
     * @return
     */
    List<Symptom> querySymptomList(@Param("partId") Long partId);

}
